package com.dd.dao;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Repository;

@Repository
public class StuDao {
    @Value("${name}")
    private String name;
    @Value("${age}")
    private String age;
    @Value("${date}")
    private String date;

    public void showStu() {
        System.out.println("姓名是:"+name);
        System.out.println("年龄是:"+age);
        System.out.println("生日是:"+date);
    }
}
